@import "../../asset/common";


.modal.address {
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: rgba(0,0,0,.3);
  left: 0;
  top: 0;
  z-index:1000;
  display: none;
}
.modal.address .icon-shanchu{
  position: absolute;
  font-size: 20px;
  color: #bbbbbb;
  right: 20px;
  top: 12px;
  cursor: pointer;
}
.modal.address .icon-shanchu:hover{
  color:#45AAFF;
}
.modal.address .modal-content{
  padding:20px;
  font-size: 14px;
}
.modal.address .modal-title{
  position:relative;
  font-size: 16px;
  padding: 13px 0 12px 20px;
  border-bottom: 1px solid #eee;
}
.modal.address .modal-title .iconfont{
  font-size: 16px;
  margin-right: 5px;
}
.modal.address .modal-title .icon-jinggao{
  color:#ffbd0c;
}
.modal.address .modal-title .icon-tanhaoup{
  color: #ff4d5c;
}
.modal.address .modal-title .icon-16pxtishi{
  color:#45AAFF;
}

.modal.address .modal-wrap{
  position: absolute;
  background-color: #fff;
  width: 800px;
  height: 530px;
  left: 50%;
  top: 50%;
  margin: -265px 0 0 -400px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  z-index: 1000;
  overflow-y: auto;
  .provinces-wrapper{
    float: left;
    width: 25%;
  }
  .city-wrapper{
    float: left;
    width: 25%;
  }
  .regions-wrapper{
    float: left;
    width: 25%;
  }
  .street-wrapper{
    float: left;
    width: 25%;
  }
  .modal-content{
    &>div{
      @include box-sizing();
      height: 392px;
      border-bottom: 1px solid #f1f1f1;
      &:first-child{
        ul{
          border-left: 1px solid #f1f1f1;
        }
      }
    }
  }
}
.modal.address .modal-wrap .button-group{
  width: 200px;
  float: right;
  margin-right: 20px;
  text-align: center;
}
.modal.address .modal-wrap .button-group button{
  width: 80px;
  height: 30px;
  line-height: 30px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  background-color: #45AAFF;
  color: #fff;
  border: none;
  outline: none;
  cursor: pointer;
}
.modal.address .modal-wrap .button-group button.cancel{
  background-color: #fff;
  border: 1px solid #45AAFF;
  color: #45AAFF;
  float: right;
}




.mod-select {
  .input-wrapper-select {
    box-sizing: border-box;
    padding: 5px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #f2f2f2;
    .inner {
      position: relative;
      input {
        width: 100%;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        height: 30px;
        padding-left: 30px;
        border-color: #f1f1f1;
      }
      .icon-chaxun{
        position: absolute;
        left: 8px;
        top: 6px;
        color: #bbb;
      }
    }
  }
  ul {
    height: 350px;
    overflow-y: auto;
    background-color: #fff;
    border-right: 1px solid #f1f1f1;
    li {
      position:relative;
      box-sizing: border-box;
      cursor: pointer;
      padding: 10px;
      border-bottom: 1px solid #f1f1f1;
      &.active {
        background-color: #45AAFF;
        color: #fff;
        &:hover{
          background-color: #45AAFF;
          color: #fff;
        }
      }
      &:hover {
        background-color: #f1f1f1;
        .operation{
          display:block;
        }
      }
      .operation{
        display:none;
        position:absolute;
        top:0;
        right:0;
        width:80px * $scale;
        height:100%;
        a{
          position:absolute;
          display: inline-block;
          top:50%;
          margin-top:-15px * $scale;
          width: 30px * $scale;
          height: 30px * $scale;
          border-radius: 100%;
          text-align: center;
          line-height: 30px * $scale;
          em{
            font-size: 18px * $scale;
            color: #fff;
          }
        }
        .edit{
          left:0;
          background-color:#45AAFF;
          em{
            position:relative;
            top:-1px;
          }
        }
        .delete{
          left:40px * $scale;
          background-color:#eb303e;
        }
      }
      .edit-item{
        position:absolute;
        width:100%;
        height:100%;
        left:0;
        top:0;
        background-color:#fff;
        z-index:10;
        input{
          display:inline-block;
          width:65%;
          height:35px;
          box-sizing:border-box;
          border-right:none;
          border-top:none;
          border-bottom:none;
        }
        button{
          display:inline-block!important;
          width:35%;
          min-width:35%;
          height:35px;
          padding:10px * $scale 10px * $scale;
          border-top-left-radius: 0;
          border-bottom-left-radius: 0;
          border-color:#45AAFF;
          &:hover{
            border-color:#45AAFF;
          }
        }
      }
    }
  }
}